// 是否枚举
enum HttpHandleTypeEnum {
    request = 0,
    response = 1
}

// 是否枚举成员
const httpHandleTypeMembers:Map<HttpHandleTypeEnum, string> = new Map<HttpHandleTypeEnum, string>()
httpHandleTypeMembers.set(HttpHandleTypeEnum.request, 'Get')
httpHandleTypeMembers.set(HttpHandleTypeEnum.response, 'response')

/**
 * 是否过滤器
 * @param value 值
 * */
function httpHandleTypeFilter(value:HttpHandleTypeEnum):string {
    const result:string = httpHandleTypeMembers.has(value) ? httpHandleTypeMembers.get(value)! : ''
    return result
}

export {
    HttpHandleTypeEnum,
    httpHandleTypeMembers,
    httpHandleTypeFilter
}
